package com.zhkj.txg.module.mine.entity

import com.google.gson.annotations.SerializedName
import com.zhkj.lib.http.BaseResponse

data class CouponListResponse(
    val data: MutableList<CouponListEntity> = mutableListOf()
) : BaseResponse() {
    var hasMore = true
    var loadMore = false
}

//"id": 146,
//"giftcert_no": "AP200907143380386149",
//"start_time": "2020-09-07",
//"end_time": "2020-10-07",
//"status": "3",
//"money": "5.00",
//"condition": "10.00",
//"name": "面包券",
//"user_type_text": "类别券"
//{"id":155,"giftcert_no":"10002020090941018762","start_time":"2020-09-09","end_time":"2020-09-10","status":"3","money":"30.00","condition":"80.00","name":"用品券","user_type_text":"类别券"}
data class CouponListEntity(
    val id: Int,
    @SerializedName("giftcert_no")
    val giftcertNo: String = "",
    @SerializedName("start_time")
    val startTime: String = "",
    @SerializedName("end_time")
    val endTime: String = "",
    val status: String = "",
    val money: String = "",
    val condition: String = "",
    val name: String = "",
    @SerializedName("user_type_text")
    val userTypeText: String = ""
)

data class CouponEntity(
    val id: Long,
    val name: String = "",
    val money: Double = 0.0,
    val condition: Double = 0.0,
    @SerializedName("type_text")
    val typeText: String = "",
    @SerializedName("use_type_text")
    val areaTypeText: String = "",
    @SerializedName("use_type")
    val useType: String? = "",
    val params: Long? = 0,
    @SerializedName("use_start_time_text")
    val startTime: String = "",
    @SerializedName("use_end_time_text")
    val endTime: String = "",
    @SerializedName("is_get")
    var isGet: Boolean = true,
    @SerializedName("use_type_long_text")
    val descText: String? = null
) {
    var shown: Boolean = false
}


//data class CouponListEntity(
//    val id: Long,
//    val status: String = "",// 0未使用，1已使用，2已过期
//    @SerializedName("status_text")
//    val statusText: String = "",
//    val coupon: CouponEntity? = null
//)
//
//data class CouponEntity(
//    val id: Long,
//    val name: String = "",
//    val money: Double = 0.0,
//    val condition: Double = 0.0,
//    @SerializedName("type_text")
//    val typeText: String = "",
//    @SerializedName("use_type_text")
//    val areaTypeText: String = "",
//    @SerializedName("use_type")
//    val useType: String? = "",
//    val params: Long? = 0,
//    @SerializedName("use_start_time_text")
//    val startTime: String = "",
//    @SerializedName("use_end_time_text")
//    val endTime: String = "",
//    @SerializedName("is_get")
//    var isGet: Boolean = true,
//    @SerializedName("use_type_long_text")
//    val descText: String? = null
//) {
//    var shown: Boolean = false
//}
